SG Window IsgPaintSink
GetFlags Method

©1998 by Stinga

IsgPaintSink      Constants     Error Codes
Description

Called to determine what areas of the window should be painted by client code.

Syntax

Private Function IsgPaintSink_GetFlags() As sgWindow.PaintFlag

Remarks

GetFlags method should return combination of flags defined in the PaintFlag enumeration:

Constant Value Description
pfClientPaint 1 SG Window will call user defined ClientPaint procedure. If pfClientAfterDefault flag is not specified, default window procedure will not be called.
pfClientAfterDefault 2 ClientPaint procedure will be called after default window procedure.
pfFramePaint 4 Call user defined FramePaint procedure. If pfFrameAfterDefault flag is not specified, default window procedure will not be called.
pfFrameAfterDefault 8 FramePaint procedure will be called after default window procedure.
Example

In the following sample, client code instructs SG Window object not to invoke default window client-area painting (client code will do all client area painting), and that client code want to paint on the frame area after default non-client painting is finished.

Private Function IsgPaintSink_GetFlags() As sgWindow.PaintFlag
   IsgPaintSink_GetFlags = pfClientPaint + _
                           pfFramePaint + pfFrameAfterDefault
End Function